#pragma once
#include "afxwin.h"
#include "ACEdit.h"


// CDlgSendLink dialog

class CDlgSendLink : public CDialog
{
	DECLARE_DYNAMIC(CDlgSendLink)

public:
	CDlgSendLink(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgSendLink();
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnCbnSelchangeComboCollection();

// Dialog Data
	enum { IDD = IDD_DIALOG_SEND_LINK };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	afx_msg void OnBnClickedButtonOpenLink();
	afx_msg void OnEnChangeEditUrl();

	DECLARE_MESSAGE_MAP()

private:
	BOOL m_bCheckLink;
	CArray<REQUEST_LINK> m_Links;

public:
	LONG m_nItemID;
	LONG m_nUserID;
	LONG m_nStaffID;
	LONG m_nLibraryID;
	LONG m_nCollectionID;

	CString m_szDateIn;

	CString m_szInfo;
	CString m_szURL;
	CString m_szInformation;

	CString m_szTo;
	CString m_szMessage;
	CString m_szFrom;
	CString m_szName;
	CString m_szSubject;

	CACEdit m_ctrlCollection;
	CArray<LONG> m_anID;
	CArray <COLLECTION_LOOKUP> m_aCollection;

	INT m_nMaterial;
};
